package com.woniuxy.controller;

import com.woniuxy.service.MenuService;
import com.woniuxy.util.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author dingpf
 * @version 1.0
 * @description
 * @create 2024/8/26 9:55
 */
@RestController
@RequestMapping("/menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @GetMapping("/queryPowerUserMenu")
    public ResponseData<?> queryPowerUserMenu(){
        return menuService.queryPowerUserMenu();
    }

    @GetMapping("/permissions/{id}")
    public ResponseData<?> queryPowerUserAuthByUserId(@PathVariable("id") Integer id){
        return menuService.queryPowerUserAuthByUserId(id);
    }
}
